<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/2010admin/Check_IsLogin.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<!--#include file="Person_Info_INC.asp" -->

<%

If Request.ServerVariables ("Request_Method")="POST" Then

	'禁止从网站外部提交数据
	Call Deny_OutSiteSubit()

	Call Person_Info_Edit()	
	

Else

	PI_ID = requery("PI_ID")
	

	Call Get_Info()


End If

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/2010admin/css/default.css" type="text/css" rel="stylesheet">
<title><%=web_title%></title>
<script language="javascript" src="/2010admin/js/validator.js"></script>
</head>
<body >
<table border="0" width="100%" cellSpacing="0" cellPadding="0">
  <tr>
    <td width="100%" height="5"></td>
  </tr>
  <tr>
    <td width="100%" align="center">
      <table border="0" width="98%" cellSpacing="0" cellPadding="0">
        <tr>
          <td width="*" align="center" valign="top">
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">管理导航</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="20">&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="userlist"><a href="Person_Info_Query.asp">资讯列表</a></span>&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="useradd"><a href="Person_Info_Add.asp">增加新的分类信息</a></td>
                    </tr>
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0">
              <tr>
                <td width="100%" height="5"></td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">增加新的分类信息</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0" class="tablesh">
                  <form name="form" method="post" action="" onSubmit="return Validator.Validate(this, 2)">

                    <tr>
                      <td height="25">信息分类</td>
                      <td>
					  <% Selected_BySql "PI_Type","SELECT dsi_name,dsi_name FROM uvw_Dic_Item where di_name='个人信息类型' ORDER BY dsi_order asc","",PI_Type %>
					  </td>
                    </tr>
                    <tr>
                      <td height="25">所在地区</td>
                      <td>
					 <% Selected_BySql "PI_Area","SELECT DSI_Name,DSI_Name from uvw_Dic_Item  WHERE DI_Name='地区' ORDER BY DSI_Order ASC","",PI_Area %>
					  </td>
                    </tr>
                    </tr>
                    <tr>
                      <td width="80" height="25">信息标题</td>
                      <td width="*"><input name="PI_Title" type="text" id="PI_Title"  value="<%=PI_Title%>"  size="60" dtype="Limit" min="2" max="100" dmsg="信息标题必须在2-100个字符间"></td>
					</tr>
                    <tr>
                      <td width="80" height="25">信息内容</td>
                      <td width="*">
							<textarea name="PI_Desc" style="display:none"><%=PI_Desc%></textarea>
							<iframe ID="eWebEditor1" src="/editor/ewebeditor.asp?id=PI_Desc&style=standard&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="80%" HEIGHT="350"></iframe>
					  </td>
                    </tr>

                    <tr>
                      <td width="80" height="25">联系人</td>
                      <td width="*"><input name="PI_Link" type="text" id="PI_Link" value="<%=PI_Link%>" size="60" dtype="Limit" min="2" max="20" dmsg="联系人必须在2-20个字符间"></td>
					</tr>

                    <tr>
                      <td width="80" height="25">联系方式</td>
                      <td width="*"><input name="PI_Tel" type="text" id="PI_Tel" value="<%=PI_Tel%>" size="60" dtype="Limit" min="0" max="20" dmsg="联系方式必须小于20个字符间"></td>
                    </tr>

                    <tr>
                      <td width="80" height="25">联系地址</td>
                      <td width="*"><input name="PI_Address" type="text" id="PI_Address" value="<%=PI_Address%>" size="60" dtype="Limit" min="0" max="100" dmsg="联系地址必须小于100个字符间"></td>
                    </tr>
                    <tr>
                      <td width="80" height="25">联系邮箱</td>
                      <td width="*"><input name="PI_Email" type="text" id="PI_Email" value="<%=PI_Email%>" size="60" dtype="Limit" min="0" max="100" dmsg="联系邮箱必须小于100个字符间"></td>
                    </tr>
					
                    <tr>
                      <td width="80" height="25">信息图片</td>
                      <td width="*"><input type="text" name="PI_Website"  value="<%=PI_Website%>" size="60" ><iframe id=d_file frameborder=0 src="upload.asp?change_field=PI_Website" width="300" height="40" scrolling=no></iframe>                      </td>
                    </tr>
					<tr>
                      <td height="25">&nbsp;</td>
                      <td>
					  <input type="submit" name="submit" value="提交" class="button">&nbsp;<input type="reset" name="reset" value="取消" class="button">
					  <input type="hidden" name="PI_ID" value="<%=PI_ID%>"></td>
                    </tr>
                  </form>
				  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="100%" height="5"></td>
  </tr>
</table>
</body>
</html>

<%
Call conn_close()
%>

